from django.contrib import admin

# Register your models here.
from .models import Course,Texe

@admin.register(Course)
class CourseAdmin(admin.ModelAdmin):
    list_display = ("title", "credit")
    search_fields = ("username",)
    exclude = ("credit",)

    def save_model(self, request, obj, form, change):
        obj.save()

admin.site.register(Texe)